


/*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
   _____                        _    _ _ _ _         _           _         ____                  _
  / ____|                      | |  | (_) | |       | |         | |       |  _ \                | |
 | |  __ _ __ ___  ___ _ __    | |__| |_| | |       | | __ _  __| | ___   | |_) | __ _ _ __ ___ | |__   ___   ___
 | | |_ | '__/ _ \/ _ \ '_ \   |  __  | | | |   _   | |/ _` |/ _` |/ _ \  |  _ < / _` | '_ ` _ \| '_ \ / _ \ / _ \
 | |__| | | |  __/  __/ | | |  | |  | | | | |  | |__| | (_| | (_| |  __/  | |_) | (_| | | | | | | |_) | (_) | (_) |
  \_____|_|  \___|\___|_| |_|  |_|  |_|_|_|_|   \____/ \__,_|\__,_|\___|  |____/ \__,_|_| |_| |_|_.__/ \___/ \___/

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/

//
// Created by Administrator on 2019/6/20.
//


/**
 * Copyright (c) 2021 - present LibDriver All rights reserved
 * 
 * The MIT License (MIT)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE. 
 *
 * @file      port_samu_device_iic.c
 * @brief     pType source file
 * @version   1.2.1
 * @author    Ruan QiZhang
 * @date      2021-01-12
 *
 */
#include "app_miic_device_port.h"

void oled_scl_out( TU8 level )
{
	//	GPIO_WRITE_BIT(GPIOB,IO_PIN_06,level);
}

void oled_sda_out( TU8 level )
{
	//	GPIO_WRITE_BIT(GPIOB,IO_PIN_09,level);
}

TU8 oled_sda_in( void )
{
	TU8 status;
//	if( GPIO_READ_BIT(GPIOB,IO_PIN_09) )
//	{
//		status = 1;
//	}
//	else
//	{
//		status = 0;
//	}
	return status;
}

void oled_set_sda_mode( TU8 level )
{
//	if(level)
//		GPIO_MODE_SET(GPIOB,9U,IO_INPUT);
//	else
//		GPIO_MODE_SET(GPIOB,9U,IO_OUT);
}

void oled_delay( void )
{
//		TU32 i = 10;
//		while(i--);
}

software_mi2c_t   i2c1_interface	= {

	.scl_out = oled_scl_out,
	.sda_out = oled_sda_out,
	.sda_in = oled_sda_in,
	.set_sda_mode  =oled_set_sda_mode,
	.delay = oled_delay,

};

software_mi2c_t* get_oled_interface( void )
{

		return &i2c1_interface;

}




